[NET] front: Fix "rmmod xennet" crash in dom0.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 18 Oct 2006 18:23:32 +0000 (19:23 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 18 Oct 2006 18:23:32 +0000 (19:23 +0100)
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c

index b75c9869600ee4c1bcb6439f4cfdfb483aeb7e34..26e0610d15c0c599f25a6be97660e8aa20ab2422 100644 (file)
@@ -2129,6 +2129,9 @@ module_init(netif_init);
 
 static void __exit netif_exit(void)
 {
+       if (is_initial_xendomain())
+               return;
+
        unregister_inetaddr_notifier(&notifier_inetdev);
 
        return xenbus_unregister_driver(&netfront);